<div class="mailinglists form">
<?php
    if($this->Session->read('login')=='yes')
    {
        echo $this->Form->create('Mailinglist'); ?>
	    <fieldset>
		    <legend><?php echo __('Edit Mailing List'); ?></legend>
	    <?php
	    	echo $this->Form->input('ListID', array('label' => 'List ID', 'hidden' => 'true')); //readonly
		    echo $this->Form->input('FirstName', array('label' => 'First Name'));
		    echo $this->Form->input('LastName', array('label' => 'Last Name'));
		    echo $this->Form->input('Email', array('label' => 'Email'));		
	    ?>
	    </fieldset>
        <?php echo $this->Form->end(__('Submit')); ?>
        <?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $this->Form->value('Mailinglist.ListID')), null, __('Are you sure you want to delete # %s?', $this->Form->value('Mailinglist.ListID'))); ?>
        </div>

<?php
}else
{
    ?>
    <p>You can't view the content in this page</p>
<?php
}
?>